<div class="page-header">
  <h1>
  	<%= @inventory.name %>

  	<div class="btn-group pull-right">
			<%= link_to edit_inventory_path(@inventory), 
												class: 'btn btn-primary' do %>
				<i class="glyphicon glyphicon-pencil"></i>
			<% end %>

			<%= link_to inventory_path(@inventory, format: :text), 
												class: 'btn btn-default', 
												title: 'Ansible Inventory file' do %>
				<i class="glyphicon glyphicon-download"></i>
			<% end %>
		</div>
  </h1>
</div>

<fieldset class="form-horizontal">
  <div class="form-group">
    <%= label_tag :owner, 'Owner:', class: 'col-lg-2 control-label' %>

    <div class="col-lg-10">
      <span class="form-control-static pull-left">
        <%= @inventory.owner.email %>
      </span>
    </div>
  </div> 

  <div class="form-group">
    <%= label_tag :key, 'Key:', class: 'col-lg-2 control-label' %>

    <div class="col-lg-10">
      <span class="form-control-static pull-left">
        <%= @inventory.key %>
      </span>
    </div>
  </div> 
</fieldset>

<hr>

<div class="col-md-6">
	<%= render 'hosts' %>
</div>
<div class="col-md-6">
	<%= render 'groups' %>
</div>